

<template>
  <a-config-provider :locale="locale">
    <router-view />
  </a-config-provider>
</template>

<script>
  import { FuncLang } from '@/assets/lang';
  import { GetLanguage } from '@/tool/common';
  const lang = GetLanguage()
  export default {
    data() {
      return {
        locale: FuncLang(lang).antd,
      };
    },
  };
</script>

<style lang="less">
  @font-face {
      font-family: 'hind-blod'; /* 给字体一个名字 */
      src: url('@/assets/fonts/NotoSansJP-Regular.ttf'); /* 适当的字体格式 */
  }
  .formdata-content {
      min-width: 260px;
      width: 368px;
      margin: 0 auto;
  }
  .container {
      background: #fff;
      padding: 16px 24px;
      overflow: auto;
      margin: 16px 16px 0 16px;
      font-size: 14px;
      font-family: 'hind-blod';
  }
  button,a {
    font-family: 'hind-blod' !important;
  }
  .trigger {
      font-size: 18px !important;
      padding: 0 24px;
      cursor: pointer;
      transition: color 0.3s;
      height: 100%;
      display: flex;
      align-items: center;
  }

  .trigger:hover {
      color: #1890ff;
  }
  
  .overhide {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ant-form-item-label > label {
    font-size: 12px !important;
  }
  .ant-form-item-with-help .ant-form-item-explain {
    font-size: 12px;
  }

  *::-webkit-scrollbar {
    display: none;
  }
  .ant-table td { white-space: nowrap; }

  .full-modal-drawer {
    .ant-drawer-body{
        margin-bottom: 40px !important;
    }
  }

  #app{
    height: 100%;
  }
  /** Antd 样式修改 */
  .layout-container ,.ant-layout,.menu-container {
    height: 100%;
  }
  #components-layout-demo-custom-trigger .ant-layout-sider-zero-width-trigger {
    top: 40%;
    border-radius: 50px;
    width: 55px;
    height: 42px;
    color: black;
    background-color: white;
    box-shadow: 5px 0 5px 0 #d9d9d9;
    right: -26px;
    text-align: right;
    padding-right: 8px;
    z-index: -999;
  }
  
  .ant-table-cell {
    padding: 10px 16px !important;
  }
  .ant-layout-content {
    border-radius: 6px;
  }
  
  /** 适配屏幕小的 设备 */
  @media screen and (max-width: 570px) {
      .status-container {
          display: flex;
          justify-content: space-between;
      }
      .full-modal {
          .ant-modal {
              max-width: 100%;
              top: 0;
              padding-bottom: 0;
              margin: 0;
          }
          .ant-modal-content {
              display: flex;
              flex-direction: column;
              min-height: calc(100vh);
          }
          .ant-modal-body {
              flex: 1;
          }
      }
      .full-modal-drawer {
        .ant-drawer-content-wrapper {
          width: 100% !important; 
        }
        .ant-drawer-body{
            margin-bottom: 40px !important;
        }
      }
  }
  
  @media screen and (max-width: 780px) {
      .ant-modal-content {
        width: 100% !important; 
      }
      .ant-form-item {
          width: 90%;
          margin-bottom: 10px !important;
      }
  }
</style>
